package com.csi.mapper;

import com.csi.domain.UserBook;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface OrderMapper {


    @MapKey("id")
    Map<String, Object> findById(@Param("userId") long userId, @Param("orderStatus") String orderStatus);

    int save(UserBook userBook);

    String findPayStatusById(long id);

    int updateCancel(long id);

    int updatedPayOrder(long payId);

    int updatedFinishOrder(long payId);
}
